import 'package:love_newf/generated/json/base/json_field.dart';
import 'package:love_newf/generated/json/user_info_model.g.dart';
import 'dart:convert';
export 'package:love_newf/generated/json/user_info_model.g.dart';

@JsonSerializable()
class UserInfoModel {
	int userId = 0;
	String phone = '';
	String userCode = '';
	String avatar = '';
	String introduction = '';
	String nick = '';
	int sex = 0;
	int age = 0;
	String degree = '';
	String marriage = '';
	int height = 0;
	String monthlyIncome = '';
	String vocation = '';
	String province = '';
	String city = '';
	int whetherRealName = 0;
	int realPerson = 0;
	int taAge = 0;
	String taProvince = '';
	int taHeight = 0;
	String taDegree = '';
	String taMonthlyIncome = '';
	int vipAccumu= 0;
	int inviteUserId = 0;
	String inviteTime = '';
	int firstLogin = 0;
	int online = 0;
	int onLive = 0;
	int roomId = 0;
	int fansCount = 0;
	int bindAlipay = 0;
	int bindWx = 0;
	int bindPhone = 0;
	int isBlock = 0;
	int isFriend = 0;
	String inviteUrl = '';
	String avatarFrameUrl = '';
	int vipGrade = 0;
	List<UserInfoUserLabels> userLabels = [];
	String beautifulCodeUrl = '';
	String wxOpenId = '';
	String wxUnionId = '';
	String alipayOpenId = '';
	String realName = '';
	int status = 0;
	int cancelStatus = 0;
	int prohibition = 0;

	UserInfoModel();

	factory UserInfoModel.fromJson(Map<String, dynamic> json) => $UserInfoModelFromJson(json);

	Map<String, dynamic> toJson() => $UserInfoModelToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}

@JsonSerializable()
class UserInfoUserLabels {
	int anchorUserId = 0;
	String labelName = '';
	int labelType = 0;
	String url = '';

	UserInfoUserLabels();

	factory UserInfoUserLabels.fromJson(Map<String, dynamic> json) => $UserInfoUserLabelsFromJson(json);

	Map<String, dynamic> toJson() => $UserInfoUserLabelsToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}